using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CMS.api.Repository
{
    public interface ICURDable<T>
    {
        IQueryable<T> Table {get;}
        T GetById(int id);
        void Inster(T entity);
        void Update(T entity);
        void Delete(int id);
        Task InsterAsync(T entity);
        Task UpDateAsync(T entity);
    }
}